package NGUYENNGOCHUNG;

public class Sample02Javabase {
	public static void main(String[] args) {
		// khai bao so nguyen
		byte a;
		short b;
		int c;
		long d;
		// khoi tao gia tri cho bien
		a = 100;
		b = 200;
		c = 300;
		d = 400;
		// hien thi gia tri cua bien
		System.out.println("gia tri cua a= " + a);
		System.out.println("gia tri cua b= " + b);
		System.out.println("gia tri cua c= " + c);
		System.out.println("gia tri cua d= " + d);
		// chu y. su dung to hop phim ctrl+shift +f de chih lai ma lenh
		// khai bao kieu string
		String strSt = "iMicrosoft.edu.vn";
		System.out.println("string=     "+strSt);
		
		// khai bao kieu so thap phan
		//double numA, numB, numC, numD =20.5;
		//float numA = 0, numB, numC, numD =(float)20.5;
		double fa;
		float fb;
		float fc;
		float fd;
		// khoi tao gia tri cho bien
		fa=20.5;
		fb= 20.5F;
		fc= 20.f;
		fd=(float)20.5;
		
		System.out.println("fa = "+fa);
		// khai bao bien luan ly boolean
		boolean flag01, flag02;
		//khoi taogia tricho bien
		flag01=true;
		flag02= false;
		
		
		
	}
}
